if(CONFIG_SOC_SERIES_SAMX7X)
  if(CONFIG_SOC_ATMEL_SAME70)
    set(series "same70")
  elseif(CONFIG_SOC_ATMEL_SAME70_REVB)
    set(series "same70b")
  elseif(CONFIG_SOC_ATMEL_SAMV71)
    set(series "samv71")
  elseif(CONFIG_SOC_ATMEL_SAMV71_REVB)
    set(series "samv71b")
  endif()
else()
  set(series ${CONFIG_SOC_SERIES})
endif()

if(series)
  zephyr_include_directories(${series})
  unset(series)
else()
  message(FATAL_ERROR "unsupported SoC series")
endif()
